const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
})

module.exports = {
  devServer: {
    open: process.platform === 'darwin',
    host: 'localhost',
    port: 8080,
    https: false,
    // 处理跨域请求
    proxy: {
      "/api9001": {
        target: "http://localhost:9001",
        secure: false,
        changeOrigin: true,
        pathRewrite: {
          "^/api9001": "",
        }
      },
      "/api9002": {
        target: "http://localhost:9002",
        secure: false,
        changeOrigin: true,
        pathRewrite: {
          "^/api9002": "",
        }
      }
    }
  },
  transpileDependencies: true,
  lintOnSave: false,
}